package com.quanyan.place.entity.apireq;

import com.quanyan.BaseRequest;
import com.quanyan.place.entity.apiresp.SettleOrder;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by yuanxuebing on 16-10-22.
 * 创建结算单参数
 */
public class ReqCreateStatement extends BaseRequest {

    @NotNull
    private Integer placeId;

    @NotNull
    @Max(1000000000)
    private BigDecimal totalAmount;

    @NotNull
    private String createName;

    @NotNull
    private Date createDate;

    private List<SettleOrder> unSettleOrders;

    public Integer getPlaceId() {
        return placeId;
    }

    public void setPlaceId(Integer placeId) {
        this.placeId = placeId;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public List<SettleOrder> getUnSettleOrders() {
        return unSettleOrders;
    }

    public void setUnSettleOrders(List<SettleOrder> unSettleOrders) {
        this.unSettleOrders = unSettleOrders;
    }
}
